﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class my_ascx_follower : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        ctpDataContext db = new ctpDataContext();
        int userno = int.Parse(Request["no"]);

        var follower = from p in db.user_follows
                       join q in db.users on p.create_user_no equals q.no
                       where p.follow_who == userno
                       orderby p.addtime descending
                       select new
                       {
                           nickname = q.nickname,
                           profile_picture = q.profile_picture,
                           no = p.create_user_no

                       };

        this.DataList3.DataSource = follower;
        this.DataBind();
    }
}
